package com.qf.life;

import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/*
杨威
2021/9/13
11:45
*/
@WebServlet("/life")
public class LifeServlet extends GenericServlet {
    public LifeServlet(){
        System.out.println("对象创建了");
    }

    @Override
    public void init(ServletConfig config) throws ServletException {
        System.out.println("初始化了");
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("提供服务");
    }


    @Override
    public void destroy() {
        System.out.println("销毁了");
    }
}
